<?php 
/* SVN FILE: $Id$ */
/* MemberLog Test cases generated on: 2009-05-19 23:05:50 : 1242791570*/
App::import('Model', 'MemberLog');

class MemberLogTestCase extends CakeTestCase {
	var $MemberLog = null;
	var $fixtures = array('app.member_log', 'app.user', 'app.order_info');

	function startTest() {
		$this->MemberLog =& ClassRegistry::init('MemberLog');
	}

	function testMemberLogInstance() {
		$this->assertTrue(is_a($this->MemberLog, 'MemberLog'));
	}

	function testMemberLogFind() {
		$this->MemberLog->recursive = -1;
		$results = $this->MemberLog->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MemberLog' => array(
			'id'  => 1,
			'time'  => '2009-05-19 23:52:50',
			'money'  => '2009-05-19 23:52:50',
			'separate_type'  => 1,
			'point'  => 1,
			'user_id'  => 1,
			'order_info_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>